package cn.hyy.client;

import cn.hyy.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "SERVICE-D",fallback =UserClientImpl.class )
public interface UserClient_FallBack {
    @GetMapping("/test/{id}")
    User getById(@PathVariable("id") Long id);
}
